<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Management'=>array('/site/management/'),
	'Maintenance'=>array('/site/maintenance/'),	
	'Users'=>array('/user/admin/'),
	$model->username,
);

$this->menu=array(
	//array('label'=>'List User', 'url'=>array('index')),
	array('label'=>'Create User', 'url'=>array('create')),
	array('label'=>'Update User', 'url'=>array('update', 'id'=>$model->iduser)),
	array('label'=>'Delete User', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->iduser),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Users', 'url'=>array('admin')),
);
?>

<h1>Viewing User #<?php echo $model->iduser; ?> : <?php echo $model->username; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'iduser',
		'username',
		'batch',
		'fullname',
		'email',
		'team_relation.short_name',
		array(
			'name'=>'Enabled',
			'value'=>User::getYesNoValue($model->enabled)),
		array(
			'name'=>'Role',
			'value'=>$model->role_relation->name),
	),
)); ?>
